package com.fx.educms.controller;



import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.fx.commonuntils.ReturnMessage;
import com.fx.educms.entity.CrmBanner;
import com.fx.educms.service.CrmFrountService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 首页banner表 前端控制器
 * </p>
 *
 * @author testjava
 * @since 2020-11-12
 */
@RestController
@RequestMapping("/educms/bannerfront")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
@Slf4j
@CrossOrigin//解决跨域问题
public class CrmFrontController {

    final private CrmFrountService crmFrountService;






    @GetMapping("getAllBanner")
    public ReturnMessage<Object> getAllBanner() {

        return crmFrountService.selectAllBanner();
    }















}

